import request from '@/utils/request'

/**
 * 登录接口
 */
const login = data => request({
  url: '/sys/login',
  method: 'POST',
  data,
})

/**
 * 获取用户基本资料接口
 */
const getInfo = () => request({
  url: '/sys/profile',
  method: 'POST',
})

/**
 * 获取员工基本信息
 */
const getUserDetailById = (id) => request({
  url: `/sys/user/${id}`,
})

// const logout() {

// }

export {
  login,
  getInfo,
  getUserDetailById
}
